package com.hk.yajin.model;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.hk.yajin.function.messages.BuyMessageMultQuickAdapter;

import java.util.List;

/**
 * Created by 伦哥哥 on 2017/7/24.
 */

public class MessageType extends AbstractExpandableItem<MessageTypeChildBean> implements MultiItemEntity {
    private int class_id;
    private String class_name;
    private String color;
    private String summary;
    private int duration;
    private int duration_gold;
    private int sub_type;
    private int end_time;
    private int subscribe;
    private List<MessageTypeChildBean> child;

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getDuration_gold() {
        return duration_gold;
    }

    public void setDuration_gold(int duration_gold) {
        this.duration_gold = duration_gold;
    }

    public int getSub_type() {
        return sub_type;
    }

    public void setSub_type(int sub_type) {
        this.sub_type = sub_type;
    }

    public int getEnd_time() {
        return end_time;
    }

    public void setEnd_time(int end_time) {
        this.end_time = end_time;
    }

    public int getSubscribe() {
        return subscribe;
    }

    public void setSubscribe(int subscribe) {
        this.subscribe = subscribe;
    }

    public List<MessageTypeChildBean> getChild() {
        return child;
    }

    public void setChild(List<MessageTypeChildBean> child) {
        this.child = child;
    }

    @Override
    public int getItemType() {
        return BuyMessageMultQuickAdapter.TYPE_PARENT;
    }

    @Override
    public int getLevel() {
        return 0;
    }


}
